//:C03:Compare2.cpp
// Illustrate overloaded compare()
#include <cassert>
#include <string>
using namespace std;

int main(void) {
  string first("This is a day that will live in infamily");
  string second("I don't believe that this is what "
    "I signed up for");
  // Compare "his is a" to "his is w":
  assert(first.compare(1,9,second, 22,9) < 0);  

}